DOpus Progress

back to section start!

  Similar to the  lister progress  and  lister newprogress  commands, the
 dopus progress  command allows you to use a progress bar without having to
open a lister.

  Useful for indicating to a user that something is happening.  As with the
 lister new  command, this command returns a handle in the  RESULT  variable
so that you can control the output of the progress bar, as well as close it
or check the abort button.  You need to save this handle if you want to do
anything with the progress bar.

  Example:


 /* DopusProgress.dopus5 */ 
options results
address 'DOPUS.1'
dopus progress name info info2 info3 bar abort
handle = result
dopus progress handle title "DOpus Progress Test"
dopus progress handle info "Counting from 10 to 0"
dopus progress handle info2 "Press abort to end"
do i = 10 to 0 by -1
  dopus progress handle bar 10 i
  dopus progress handle info3 i" to go."
  address command wait 1
  dopus progress handle abort
  if result = 1 then leave
end
dopus progress handle off
exit

DOpus PLUS - giving you that bit extra...